#include <iostream>//main.cpp
#include "Complex.cpp"

using namespace std;

int main()
{
    Complex sum,c[5];
    int i;
    for(i=0;i<5;i++)
    {
        c[i].Input();
        sum=sum.Add(c[i]);
    }
    for(i=0;i<5;i++)
    {
        c[i].Display();
    }
    cout<<endl<<"the sum:"<<endl;
    sum.Display();

    return 0;
}
